package com.score.handle;

import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MyHandlerInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        response.setHeader("Set-Cookie", "HttpOnly;Secure;SameSite=None");
//        response.addHeader("Access-Control-Expose-Headers","Authorization");
        response.setHeader("Access-Control-Expose-Headers","Authorization");
        return true;
    }
}